home *** CD-ROM | disk | FTP | other *** search
/ Cracking 2 / Cracking II..iso / Kompresni & kodovaci programy / ucl-0.91 / acconfig / m4 / ccbugcast.m4 < prev    next >
Text File  |  1999-05-29  |  724b  |  18 lines

  1. ## --------------------------------------------------------- ##
  2. ## Checking if compiler correctly cast signed to unsigned.   ##
  3. ## Adapted from zsh.                                         ##
  4. ## --------------------------------------------------------- ##
  5.  
  6. # serial 1
  7.  
  8. AC_DEFUN(mfx_PROG_CC_BUG_SIGNED_TO_UNSIGNED_CASTING,
  9. [AC_REQUIRE([AC_PROG_CC])dnl
  10. AC_REQUIRE([AC_PROG_CPP])dnl
  11. AC_CACHE_CHECK(whether signed to unsigned casting is broken,
  12. mfx_cv_prog_cc_bug_signed_to_unsigned_casting,
  13. [AC_TRY_RUN([int main(){return((int)(unsigned char)((char) -1) != 255);}],
  14. mfx_cv_prog_cc_bug_signed_to_unsigned_casting=no,
  15. mfx_cv_prog_cc_bug_signed_to_unsigned_casting=yes,
  16. mfx_cv_prog_cc_bug_signed_to_unsigned_casting=unknown)])
  17. ])
  18.